import request from '@/utils/request'

export const getMenuApi = () => {
  return request.get(`/admin/acl/permission`)
}

// 新增菜单
export const addMenuApi = (data) => {
  return request.post(`/admin/acl/permission/save`, data)
}

// 修改菜单
export const updateMenuApi = (data) => {
  return request.put(`/admin/acl/permission/update`, data)
}

// 删除菜单
export const delMenuApi = (id) => {
  return request.delete(`/admin/acl/permission/remove/${id}`)
}
